package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.Article;
import com.nbsaas.boot.cms.api.domain.response.ArticleResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 文章-实体对象转化成响应对象
*/

public class ArticleResponseConvert  implements Converter<ArticleResponse,Article> {

    @Override
    public ArticleResponse convert(Article source) {
        ArticleResponse  result = new  ArticleResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

